package com.xsprite.managesys.servlet;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.omg.PortableInterceptor.ServerIdHelper;

import com.xsprite.managesys.bean.QueryServer;
import com.xsprite.managesys.service.ServersDatabaseManager;

/**
 * Servlet implementation class ToQueryRegisterTime
 */
public class ToQueryRegisterTimeServlet extends BaseServlet {
	private static final long serialVersionUID = 1L;

	@Override
	protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		super.service(req, resp);
		ServersDatabaseManager manager = ServersDatabaseManager.getInstance();
		List<QueryServer> servers = manager.getServersLsit();
		req.setAttribute("queryRegisterServers", servers);
		forwardTo("/view/queryRegister.jsp");
	}
}
